package com.zhiliao.intermediary.demo1;

/**
 * 作者： zhi-liao
 * 类的作用:
 * 类的创建时间： 2021/5/23 15:35
 */
public class Mediator extends AbstractMediator{

    public Mediator(AbstractColleague a, AbstractColleague b) {
        super(a, b);
    }

    @Override
    public void collaAffectCollb() {
        int number = a.getNumber();
        b.setNumber(number*100);
    }

    @Override
    public void collbAffectColla() {
        int number = b.getNumber();
        a.setNumber(number/100);
    }
}
